<%--
  Created by IntelliJ IDEA.
  User: 彭于晏
  Date: 2024/6/4
  Time: 14:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>springMvc</title>
    <style>
        body {
            text-align: center;
            margin-top: 20px;
        }
        .centered {
            display: flex; /* 将元素设置为弹性盒子 */
            justify-content: center; /* 水平居中 */
            align-items: center; /* 垂直居中 */
        }
        .login-container {
            width: 300px;
            margin: 100px auto;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
        }
        button {
            width: 100%;
            margin-bottom: 10px;
            padding: 10px;
            box-sizing: border-box;
            border: 5px solid #ccc;
            border-radius: 3px;
        }
        h2 {
            color: orange;
            text-align: center;
        }
    </style>

</head>
<body>
<div class="login-container">
    <h2>登录页面</h2>

    <form method="get" action="${pageContext.request.contextPath}/user/rest">
        <div>
            <%--账号栏，类型为text--%>
            <label>账号:</label> <input type="text" name="username" required="required" />
        </div>
        <div>
            <%--        密码栏，类型为password--%>
            <label>密码:</label> <input type="password" name="password" required="required" />
        </div>
        <input type="submit" value="restGet">
    </form>
</div>
</body>
</html>
